package com.ckf.kcfmall.goods.controller;

import com.ckf.ckfmall.api.entity.Goods;
import com.ckf.ckfmall.api.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 商品控制器
 *
 * @author 安详的苦丁茶
 * @date 2020/6/5 10:30
 */

@RestController
public class GoodsController {

    @Autowired
    private GoodsService goodsService;

    @GetMapping("/goodsList")
    public List<Goods> list() {
        return goodsService.goodsList();
    }
}
